import { request } from "@/utils/service"

/** 获取登录验证码 */
export function getLoginCodeApi() {
  return request({
    url: "/sjw_department_control/captcha/captchaImage",
    method: "get"
  })
}

/** 登录并返回 Token */
export function loginApi(params) {
  return request({
    url: "/sjw_department_control/acc/doLogin",
    method: "post",
    params
  })
}

/** 获取用户详情 */
export function getUserInfoApi() {
  return request({
    url: "/sjw_department_control/acc/userInfo",
    method: "post"
  })
}
